package org.moonholder.springboot.damocles.service;

import org.moonholder.springboot.damocles.entity.User;
import org.moonholder.springboot.damocles.entity.vo.ResponseEntity;

import javax.servlet.http.HttpServletRequest;

public interface IAdminService {

    ResponseEntity login(String username, String password, String verifyCode);

    boolean register(User user);

    ResponseEntity changePassword(HttpServletRequest request, String oldPassword, String password);

    ResponseEntity changeProfile(User user, HttpServletRequest request);

    ResponseEntity forget(String email);

    ResponseEntity forgetPassword(String forgetToken, String password);
}
